import request from '@/utils/request'
export function getAdminUserPage(search) {
    return request({
        // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
        url: '/RoleDbManager/GetPageList',
        method: 'post',
        data: search
    })
}
export function GetRoleById(role_id) {
    return request({
        // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
        url: '/RoleDbManager/GetRoleById?role_id=' + role_id,
        method: 'post',
        data: role_id
    })
}

export function RoleAdd(userInfo) {
    return request({
        url: '/RoleDbManager/RoleAdd',
        method: 'post',
        data: userInfo
    })
}
export function RoleUpdate(userInfo) {
    return request({
        url: '/RoleDbManager/RoleUpdate',
        method: 'post',
        data: userInfo
    })
}
export function RoleDelete(role_id) {
    return request({
        url: '/RoleDbManager/RoleDelete?role_id=' + role_id,
        method: 'post',
        data: role_id
    })
}
